]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Make clicking on windows in the overlay activate the windows
authorOwen Taylor <otaylor@src.gnome.org>
Fri, 7 Nov 2008 17:14:26 +0000 (17:14 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Fri, 7 Nov 2008 17:14:26 +0000 (17:14 +0000)
Hook up activating windows in the overlay now that we have
MetaWindow GObject'ified and exposed to gobject-introspection.

svn path=/trunk/; revision=35

js/ui/overlay.js

index 85176520ec63563a747ff2325c42a97b81a3d733..c0a3d6f0690ae85ca0a59607404e13c2bcb60689 100644 (file)
@@ -200,14 +200,14 @@ Overlay.prototype = {
 
        let me = this;
        clone.connect("button-press-event",
-                     function() {
-                         me._activateWindow(w);
+                     function(clone, event) {
+                         me._activateWindow(w, event.get_time());
                      });
     },
 
-    _activateWindow : function(w) {
+    _activateWindow : function(w, time) {
        this._deactivate();
-       log("Activate "+ w.get_description());
+       w.get_meta_window().activate(time);
     },
 
     _deactivate : function() {